package com.wkcto.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MyController {



    @GetMapping(value = "/access/zs", produces = "text/html;charset=utf-8")
    public String sayUser() {
        return "zs 是user 角色";
    }

    @GetMapping(value = "/access/lisi")
    public String sayRead() {
        return "lisi 是 read角色";
    }


    @GetMapping (value = "/access/admin", produces = "text/html;charset=utf-8")
    public String sayAdmin() {
        return "admin 是user, admin角色";
    }

}
